<ul class="accordion-category">
	<?php
	if(is_array($category) && count($category) > 0) {
		foreach ($category as $key => $value) {  ?>
	<li class="<?php if(isset($catId) && $catId == $value->id) echo 'active'; ?>"><a href="<?php echo site_url('danhmuc') .'/'. $value->id .'-'. create_link($value->name); ?>"><h3><?php echo $value->name; ?></h3></a></li>
	<?php 
		} 
	}
	?>
</ul>